const {
    override,
    addDecoratorsLegacy,
    disableEsLint,
    addBundleVisualizer,
    addWebpackAlias,
    adjustWorkbox 
  } = require("customize-cra");
  const path = require("path");
   
  module.exports = override(
    // enable legacy decorators babel plugin
    addDecoratorsLegacy(),
   
    // disable eslint in webpack
    disableEsLint(),
   
    // add webpack bundle visualizer if BUNDLE_VISUALIZE flag is enabled
    // process.env.BUNDLE_VISUALIZE == 1 && addBundleVisualizer(),
   
    // add an alias for "ag-grid-react" imports
    addWebpackAlias({
      ["@"]: path.resolve(__dirname, "src")
    }),
   
    // adjust the underlying workbox
  );